<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="panel">
 <div class="panel-heading">
   	 查询区域
  </div>
  <div class="panel-body">
     <div class="row">
       <div class="col-md-4">
       <div class="input-group">
         <span class="input-group-addon">商户编码</span>
 		 <input type="text" class="form-control" placeholder="" id="queryMerchantCode" name="queryMerchantCode">
   		</div>
       </div>
        <div class="col-md-4">
           <div class="input-group">
         <span class="input-group-addon">商户名称</span>
 		 <input type="text" class="form-control" placeholder=""  id="queryMerchantNameLike" name="queryMerchantNameLike">
   		</div>
        </div>
         <div class="col-md-4">
         <button class="btn btn-success" type="button" id="searchBtn"><i class="icon-search"></i>搜索</button>
         </div>
     </div>
  
  </div>
  
</div>
 
<br>
<div  class="datagrid">

<div class="search-box">
   &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-primary" id="addBtn" data-toggle="modal" data-target="#addModal"><i class="icon-plus"></i>添加</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-warning" id="updateBtn" data-target="#updateModal"><i class="icon icon-edit"></i>修改</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-danger" id="deleteBtn" data-target="#deleteModal"><i class="icon icon-trash"></i>删除</button> &nbsp;&nbsp;&nbsp;&nbsp;
  <button type="button" class="btn btn-success" id="detailBtn" data-target="#detailModal"><i class="icon icon-info"></i>详情</button>

</div>
<div class="datagrid-container" id="dataGridList" ></div>
    <div id="myPager" class="pager"  data-ride="pager" ></div>
</div>

<div class="modal fade"  id="addModal"><!--添加  -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">新增商户</h4>
      </div>
            <form id="addForm">
      <div class="modal-body">
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">商户编码</span>
				  <input type="text" id="addMerchantCode" name="addMerchantCode" class="form-control" placeholder="">
				</div>
	    	</div>
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">商户名称</span>
				  <input type="text" id="addMerchantName" name="addMerchantName" class="form-control" placeholder="">
				</div>
	    	</div>
	    </div>
	    <br>
 
	    
       
      <div class="modal-footer">
      <input type="hidden" name="action" value="add"  />
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary" id="addSaveBtn">保存</button>
      </div>
      </div>
      </form>
    </div>
  </div>
</div>
<div class="modal fade" id="deleteModal"><!-- 删除 -->
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">删除商戶</h4>
      </div>
      <div class="modal-body">
        <p>您确定要删除此机构信息吗?</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="deleteSure">确定</button>
      </div>
    </div>
  </div>
</div>
<div class="modal fade"  id="updateModal"><!-- 修改 -->
<div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">修改菜单</h4>
      </div>
            <form id="updateForm">
      <div class="modal-body">
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">商户编码</span>
				  <input type="text" id="updateMerchantCode" name="updateMerchantCode" class="form-control" placeholder="">
				</div>
	    	</div>
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">商户名称</span>
				  <input type="text" id="updateMerchantName" name="updateMerchantName" class="form-control" placeholder="">
				</div>
	    	</div>
	    </div>
	    <br>


      <div class="modal-footer">
     	<input type="hidden" id="updateMerchantId" name="updateMerchantId" />
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary" id="updateSaveBtn">保存</button>
      </div>
      </div>
      </form>
    </div>
  </div>
</div>
<div class="modal fade"  id="detailModal"><!-- 详情 -->
<div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">菜单详情</h4>
      </div>
            <form id="detailForm">
      <div class="modal-body">
        <div class="row">
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">商户编码</span>
				  <input type="text" id="MerchantCode" name="MerchantCode" class="form-control" placeholder="" readonly="true">
				</div>
	    	</div>
	    	<div class="col-md-6">
	    		<div class="input-group">
				  <span class="input-group-addon">商户名称</span>
				  <input type="text" id="MerchantName" name="MerchantName" class="form-control" placeholder="" readonly="true">
				</div>
	    	</div>
	    </div>
	    <br>
       
	    </div>
	    
      
      <div class="modal-footer">
     	<input type="hidden" id="updateMenuId" name="updateMenuId" />
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
   
      </div>
      
      </form>
    </div>
  </div>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.validate.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/localization/messages_zh.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/config.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/merchant.js?version=132"></script>